package com.wins.bbs.controller;

import java.util.HashMap;
import java.util.Map;

import com.opensymphony.xwork2.ActionSupport;

abstract class AbstractController extends ActionSupport {
    private Map<String, Object> resultSet;

    AbstractController() {
        if (resultSet == null) {
            resultSet = new HashMap<String, Object>();
        }
    }

    public Map<String, Object> getResultSet() {
        return resultSet;
    }

    public Object getResult(final String key) {
        return resultSet.get(key);
    }

    public void putSuccessResult(final String key, final Object result) {
        resultSet.put(key, result);
    }
}